package com.thread.pool.domain.param;

/**
 * 线程相关参数
 */
public class ThreadPoolParam {

    /**
     * 核心线程数，如果配置文件存在使用该核心线程数
     */
    private Integer coreSize;

    /**
     * 最大线程数,该配置优先
     */
    private Integer maxSize;

    /**
     * 队列数，该配置优先
     */
    private Integer queueSize;


    public Integer getCoreSize() {
        return coreSize;
    }

    public ThreadPoolParam setCoreSize(Integer coreSize) {
        this.coreSize = coreSize;
        return this;
    }

    public Integer getMaxSize() {
        return maxSize;
    }

    public ThreadPoolParam setMaxSize(Integer maxSize) {
        this.maxSize = maxSize;
        return this;
    }

    public Integer getQueueSize() {
        return queueSize;
    }

    public ThreadPoolParam setQueueSize(Integer queueSize) {
        this.queueSize = queueSize;
        return this;
    }

    public static ThreadPoolParam build(){
        return new ThreadPoolParam();
    }

}
